<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>阿离博客-{{ user.username }}的帖子</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
        <link rel="shortcut icon" type="image/vnd.microsoft.icon" href="https://avatar.moonshot.cn/avatar/cmri3mecp7fdvr21ch3g" />
</head>
<body>
<h1>{{ user.username }}的帖子</h1>

<ul>
    {% for post in posts %}
        <li>
            <h3><a href="{{ url_for('post_detail', post_id=post.id) }}">{{ post.title }}</a></h3>
            <p>{{ post.content }}</p>
            <small>附件: {{ post.attachment }}</small>
        </li>
    {% endfor %}
</ul>

<a href="{{ url_for('index') }}">返回首页</a>
</body>
</html>
